<template>
	<view>
		<u-navbar :isFixed="true" title="关于平台" :borderBottom="false"></u-navbar>
		<view class="block"></view>
		<view class="name">树之道</view>
		<view class="content">
			<uParse :content="article" ></uParse>
		</view>
		<!-- <view class="show">展开更多 +</view> -->
		<view class="item">
			<view class="top flex_bet_align">
				<view class="title">企业资质</view>
			</view>
			<block v-for="(item,index) in images">
				<image :src="item" class="img" mode="widthFix" @click="showimg(item)"></image>
			</block>
		</view>
		
		
	</view>
</template>

<script>
	var _this;
	export default {
		data() {
			return {
				modalName:'licence',
				article:"",
				images:[]
			}
		},
		onLoad(options) {
			_this = this
			_this.getdata()
		},
		methods: {
			// 获取数据
			getdata() {
				_this.$api.get("setup", {}).then(data => {
					// _this.list = data
					_this.article=data.about.content
					_this.images=data.about.images
				});
			},
			phone(value){
				uni.makePhoneCall({
					phoneNumber:value.toString()
				})
			},
			showimg(img){
				_this.$plug.showImg(_this.images,img)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.block{
		height: 10rpx;
		background-color: #F2F2F2;
	}
	.name{
		font-size: 50rpx;
		font-family:PingFang SC-Bold;
		font-weight: 700;
		text-align: center;
		color: #333333;
		margin:82rpx 0 57rpx;
	}
	.content{
		width: 655rpx;
		margin:0 auto;
		font-size: 28rpx;
		font-family: PingFang SC-Medium;
		font-weight: 500;
		text-align: justifyLeft;
		color: #666666;
		line-height: 48rpx;
		letter-spacing: 0px;
	}
	.show{
		font-size: 28rpx;
		font-family: PingFang SC-Medium;
		font-weight: 500;
		text-align: center;
		color: #c5c5c5;
		line-height: 48rpx;
		letter-spacing: 0px;
		margin-top:79rpx;
		margin-bottom: 68rpx;
	}
	.item{
		padding:45rpx 50rpx;
		font-size: 30rpx;
		font-family: PingFang SC-Medium;
		font-weight: 500;
		text-align: left;
		color: #333333;
		line-height: 38rpx;
		letter-spacing: 0px;
		border-top:1rpx solid #F7F7F7;
		border-bottom:1rpx solid #F7F7F7;
		.icon{
			font-weight: 700;
			color:#A7A7A7;
			font-size: 36rpx;
		}
		.img{
			width: 480rpx;
			height: 279rpx;
			background: #e6e6e6;
			margin:54rpx 85rpx 0;
		}
	}
</style>
